package com.yupi.project.service.impl;

import com.yupi.yucongming.dev.client.YuCongMingClient;
import com.yupi.yucongming.dev.common.BaseResponse;
import com.yupi.yucongming.dev.model.DevChatRequest;
import com.yupi.yucongming.dev.model.DevChatResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class AIChart {

    @Autowired
    private YuCongMingClient client;

    public BaseResponse<DevChatResponse> doChart(String message){
        DevChatRequest devChatRequest = new DevChatRequest();
        devChatRequest.setModelId(1882414627562893313L);
        devChatRequest.setMessage(message);
        BaseResponse<DevChatResponse> response = client.doChat(devChatRequest);
        //System.out.println(response.getData());
        return response;
    }

}
